<?php
/* @var $this CmpDepositController */
/* @var $data CmpDeposit */
$payStatus = array(
				'1'=>'<span class="c_f60">申请退款</span',
				'2'=>'<span class="c_999">退款关闭</span>',
				'3'=>'<span class="c_f60">退款处理中</span',
				'4'=>'<span class="">退款成功</span>',
				'5'=>'<span class="">线下支付</span>',
			);
?>
		<tr>
			<td class="tl num" width="14%">
				<?php echo CHtml::checkBox('id[]','',array('class'=>'chk','onclick'=>'CheckList("ids[]","id[]")','value'=>$data->zr_id))?>
				<?php echo CHtml::encode($data->zr_id); ?>
			</td>
			<td class="tl" width="20%">
				<span class="d_b"><?php echo CHtml::encode($data->zo_id); ?></span>
				<?php if(!empty($data->zop_id)){
					if(!empty($data->ordproduct))
						echo CHtml::link(mb_substr($data->ordproduct->zop_title,0,22,'utf8'),array('/home/product/detail','id'=>$data->ordproduct->zp_id),array('class'=>'c_06c'));
				}else{
					foreach($data->order->orderProduct as $product){
						echo CHtml::link(md_substr($data->ordproduct->zop_title,0,22,'utf8'),array('/home/product/detail','id'=>$data->ordproduct->zp_id),array('class'=>'c_06c'))."<br>";
					}
				}?>
			</td>
			<td width="10%">
				<?php echo $data->buyer->zm_name?>
			</td>
			<td width="8%">	
				<strong><?php if(!empty($data->ordproduct)) echo empty($data->zop_id)?$data->order->zo_amount:$data->ordproduct->zop_real_price?></strong>
			</td>
			<td width="8%">
				<strong class="c_f60"><?php echo $data->zr_amount?></strong>
			</td>
			<td width="12%">
				<?php echo date('Y-m-d H:i',$data->inputtime)?>
			</td>
			<td width="12%">
				<?php echo date('Y-m-d H:i',$data->inputtime+3600*24*7)?>
			</td>
			<td width="10%">
				<?php echo $payStatus[$data->zr_pay_status]?>
			</td>
			<td width="6%">
				<?php echo CHtml::link(Yii::t('cmp','View'),array('view','id'=>$data->zr_id),array('class'=>'c_06c'))?>
			</td>
		</tr>

